package com.ly.dict.controller;

import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.core.handle.Context;
import org.noear.solon.core.handle.ModelAndView;

@Controller
public class IndexController {

    @Mapping("/")
    public Object index(Context ctx) {
        ctx.redirect("/index.html");
        ModelAndView vm = new ModelAndView("/index.html"); //注意，带后缀
        return null;
    }
}
